
/****
 * 
 * @author Nizar
 * 
 */


import java.math.BigDecimal;
import java.util.HashMap;

public class Env {

	private final HashMap<Id, BigDecimal> map = new HashMap<>();

	BigDecimal get(Id id)
	{
		BigDecimal val = map.get(id);
		if (val == null)
		{
			throw new RuntimeException("runtime: unknown id: " + id);
		}
		return val;
	}

	BigDecimal put(Id id, BigDecimal val)
	{
		map.put(id,  val);
		return val;
	}
}
